package User;

import javax.json.bind.annotation.JsonbDateFormat;
import javax.json.bind.annotation.JsonbNumberFormat;
import javax.json.bind.annotation.JsonbProperty;
import javax.json.bind.annotation.JsonbTransient;
import java.math.BigDecimal;



public class UserDTO {

    // 为了使用jsonb,必须有一个空的默认构造方法
    public UserDTO() {

    }

    public UserDTO(String error ,String username, String name, String group, String openid,String wx_openid) {
        this.username = username;
        this.name = name;
        this.group = group;
        this.openid = openid;
        this.wx_openid = wx_openid;
        this.error=error;

    }
    private int id;
    @JsonbProperty("username")
    private String username;

    @JsonbProperty("name")
    private String name;


    @JsonbProperty("group")
    private String group;


    @JsonbProperty("openid")
    private String openid;


    @JsonbProperty("wx_openid")
    private String wx_openid;

    @JsonbProperty("error")
    private String error;




    @JsonbNumberFormat(locale = "en_US", value = "#0.0")

    public String getError() {
        return error;
    }

    public void seterror(String error) {
        this.error = error;
    }

    public String getusername() {
        return username;
    }

    public void setusername(String username) {
        this.username = username;
    }

    public String getname() {
        return name;
    }

    public void setname(String name) {
        this.name = name;
    }

    public String getgroup() {
        return group;
    }

    public void setgroup(String group) {
        this.group = group;
    }

    public String getopenid() {
        return openid;
    }

    public void setopenid(String openid) {
        this.openid = openid;
    }

    public String getWx_openid() {
        return wx_openid;
    }

    public void setwx_openid(String wx_openid) {
        this.wx_openid = wx_openid;
    }


}